Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@vue/babel-sugar-v-on
Advanced tools
Syntactic sugar for v-on in JSX.
Install the dependencies:
# for yarn:
yarn add @vue/babel-sugar-v-on
# for npm:
npm install @vue/babel-sugar-v-on --save
In your .babelrc
:
{
"plugins": ["@vue/babel-sugar-v-on"]
}
However it is recommended to use the configurable preset instead.
This plugin adds v-on to the JSX and tries to mirror the same behaviour as in vue-template-compiler, with a few differences:
_
) instead of dot (.
) for modifiers (vOn:click_prevent={this.test}
)vOn
) in JSX, but you can use kebab-case too (v-on
).export default {
methods: {
test() {
console.log('Hello World')
},
},
render(h) {
return (
<div>
<a href="https://vuejs.org" vOn:click={this.test}>Vue</a>
</div>
)
},
}
FAQs
Babel syntactic sugar for v-model support in Vue JSX
The npm package @vue/babel-sugar-v-on receives a total of 503,396 weekly downloads. As such, @vue/babel-sugar-v-on popularity was classified as popular.
We found that @vue/babel-sugar-v-on demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.